package com.tap.controller;

import com.tap.common.BaseResult;
import com.tap.service.HotPlayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RestController
public class HotPlayController {
    @Autowired
    HotPlayService hotPlayService;

    @GetMapping("/hotPlay")
    public BaseResult hotPlay(){
        BaseResult baseResult = hotPlayService.findHotPlayAll();
        return baseResult;
    }
}
